OBJECT = Application.o Monitor.o NBuffer.o Number.o Tools.o Object.o main.o
TARGET = a.out

CC     = gcc
CSTD   = --std=c2x
CFLAGS = -I. -Wall `pkg-config --cflags gtk4`

LIBS   = `pkg-config --libs gtk4`

RM       = rm
RM_FLAGS = -v -f

all: $(TARGET)

run: $(TARGET)
	./$(TARGET)

$(TARGET): $(OBJECT)
	$(CC) $^ -o $@ $(LIBS)

$(OBJECT): %.o : %.c
	$(CC) $(CSTD) -c $< -o $@ $(CFLAGS)

.PHONY: clean
clean:
	$(RM) $(RM_FLAGS) $(OBJECT) $(TARGET)